﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvcShop.Models.ViewDataModels
{
    public class OrdersCenter
    {
        public int OrdersId { get; set; }
        public string BillNo { get; set; }
        public string CustomerName { get; set; }
        public DateTime Ordered { get; set; }
        public bool? IsInvalid { get; set; }
        public bool? IsActive { get; set; }
        public bool? IsPayment { get; set; }
        public bool? IsSend { get; set; }
        public string Address { get; set; }
        public int Postalcode { get; set; }
        public string Phone { get; set; }
        public string DeliverName { get; set; }
        public decimal TotalValue { get; set; }

        public IEnumerable<ProductToOrders> OrdersInfos { get; set; }
    }

    public class ProductToOrders
    {
        public int ProductId { get; set; }
        public string ProductName { get; set; }
        public string ImageAddress { get; set; }
        public decimal OPrice { get; set; }
        public int Amount { get; set; }
    }
}
